import Axios from "axios"

const state = {
    list: []
}

const mutations = {
    GETDATA(state,list) {
        state.list = list
    }
}

const actions = {
    async getData({ commit }) {
        let result = await Axios.get('/data.json');
        if(result.status == 200)
        commit('GETDATA',result.data)
    }
}

export default {
    state,
    mutations,
    actions
}
